package com.ruoyi.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName quantitytable
 */
@TableName(value ="quantitytable")
@Data
public class Quantitytable implements Serializable {
    /**
     * 额度id
     */
    @TableId(type = IdType.AUTO)
    private Integer qid;

    /**
     * 芝麻信用积分最小值
     */
    private Integer integralmin;

    /**
     * 芝麻信用积分最大值
     */
    private Integer integralmax;

    /**
     * 额度
     */
    private Long quantity;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Quantitytable other = (Quantitytable) that;
        return (this.getQid() == null ? other.getQid() == null : this.getQid().equals(other.getQid()))
            && (this.getIntegralmin() == null ? other.getIntegralmin() == null : this.getIntegralmin().equals(other.getIntegralmin()))
            && (this.getIntegralmax() == null ? other.getIntegralmax() == null : this.getIntegralmax().equals(other.getIntegralmax()))
            && (this.getQuantity() == null ? other.getQuantity() == null : this.getQuantity().equals(other.getQuantity()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getQid() == null) ? 0 : getQid().hashCode());
        result = prime * result + ((getIntegralmin() == null) ? 0 : getIntegralmin().hashCode());
        result = prime * result + ((getIntegralmax() == null) ? 0 : getIntegralmax().hashCode());
        result = prime * result + ((getQuantity() == null) ? 0 : getQuantity().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", qid=").append(qid);
        sb.append(", integralmin=").append(integralmin);
        sb.append(", integralmax=").append(integralmax);
        sb.append(", quantity=").append(quantity);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}